package helexis.game.tyrian.utils;

import java.text.NumberFormat;
import java.util.Locale;

public abstract class TextUtils {
	
	private static final NumberFormat FORMATTER;
	
	static {
        FORMATTER = NumberFormat.getCurrencyInstance(Locale.KOREA);
        FORMATTER.setMinimumFractionDigits(0);
        FORMATTER.setMaximumFractionDigits(0);
    }//end of static area
	
	
	/**
	 * 주어진 금액을 문자열로 변환하여 리턴합니다.
	 * 
	 * @param credits 금액
	 * @return 문자열로 변환된 금액
	 */
	public static String creditStyle(int credits) {
		return FORMATTER.format(credits);
	}//end of creditStyle()
	

}
//end of TextUtils.java